package com.zzu.wardrobe.service;

import java.util.List;

import com.zzu.wardrobe.dao.ClothesDAO;
import com.zzu.wardrobe.entity.Clothes;

public class ClothesServiceImpl implements ClothesService{
	private ClothesDAO clothesDAO;
	
	public ClothesDAO getClothesDAO() {
		
		return clothesDAO;
	}

	public void setClothesDAO(ClothesDAO clothesDAO) {
		this.clothesDAO = clothesDAO;
	}

	@Override
	public List<Clothes> showAll() {
		
		return clothesDAO.showAll();
	}
	
	public int add (Clothes clothes){
		System.out.println("2222222222222222");
		return clothesDAO.add(clothes);
	}

}
